<?php

namespace SaaS;

use Dcat\Admin\Extend\ServiceProvider as ExtendServiceProvider;
use SaaS\Commands\SaaSInstall;
use SaaS\Commands\SaaSSchedule;

class ServiceProvider extends ExtendServiceProvider
{
    protected $js = [
        'js/index.js',
    ];
    protected $css = [
        'css/index.css',
    ];

    protected $menu = [
        [
            'title' => '租户空间',
            'uri' => 'domains',
            'icon' => 'feather icon-settings'
        ]
    ];

    public function register()
    {
        $this->commands([
            SaaSInstall::class,
            SaaSSchedule::class
        ]);
    }

    public function init()
    {
        parent::init();
    }

    public function settingForm(): Setting
    {
        return new Setting($this);
    }
}
